<?php
//echo $this->dojo();

?>

<h1><?= $this->assemblyLine->getName() ?></h1>
<h2>Step <?= $this->currentStepNumber ?> of <?= $this->totalSteps?>: <?= $this->currentStepTitle ?></h2>
<?php 
$form = $this->form;
echo $form;
if(!$this->currentStep->isRequired())
{
	$skipUrl = $this->url
	(
		array
		(
			'module' => Zend_Controller_Front::getInstance()->getRequest()->getModuleName(),
			'controller' => Zend_Controller_Front::getInstance()->getRequest()->getControllerName(),
			'action' => Zend_Controller_Front::getInstance()->getRequest()->getActionName(),
			'assemblyline' => Zend_Controller_Front::getInstance()->getRequest()->getParam('assemblyline'),
			'step' => ((int)Zend_Controller_Front::getInstance()->getRequest()->getParam('step'))+1+count($this->currentStep),
		
		)
	);
?>
	<div dojoType="dijit.form.Button">
		<span>Skip</span>
		<script type="dojo/connect" event="onClick">
			window.location = '<?= $skipUrl ?>';
		</script>
	</div>
<?php
}
/*
?>
<span dojoType="dijit.layout.ContentPane">
<script type="dojo/connect">
	//dojo.connect(dojo.byId('<?= $form->filterName($table->getName()) . 'Form'?>'), 'onsubmit', formSubmit);

</script>
</span>
*/